//
//  ZDBAddreassTableViewCell.m
//  ZDB
//
//  Created by Kk on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBAddreassTableViewCell.h"

@implementation ZDBAddreassTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellAccessoryNone;
    KViewBorder(_footView, CELLCOLOR, 0.4);
}

-(void)setAddressModel:(Addreass *)addressModel{

    _addressModel =addressModel;
    
    self.name.text = addressModel.name;
    self.phone.text =kStringForNumber(addressModel.tel);
    self.address.text = addressModel.address;
    
    if ([addressModel.type integerValue]==1) {
        self.defaultBtn.selected = YES;
    }else{
        self.defaultBtn.selected = NO;
    }

    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
